﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PhoneManager
{
    public partial class FrmDefault : Form
    {
        public FrmDefault()
        {
            InitializeComponent();
            PctClose.Left = this.ClientRectangle.Width - PctClose.Width - 5;
            PnlTop.Left = 0;
            PnlTop.Width = this.ClientRectangle.Width;
            this.PnlTitle.Font = new System.Drawing.Font("Segoe UI", 11, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.LblTitle.Font = PnlTitle.Font;
        }
        public override string Text
        {
            get
            {
                return base.Text;
            }
            set
            {
                base.Text = value;
                this.LblTitle.Text = value;
                this.LblTitle.Font = PnlTitle.Font;
            }
        }
        private void FrmDefault_SizeChanged(object sender, EventArgs e)
        {
            PctClose.Left = this.ClientRectangle.Width - PctClose.Width - 5;
            PnlTop.Left = 0;
            PnlTop.Width = this.ClientRectangle.Width;
        }

        private void PctClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void LblTitle_MouseDown(object sender, MouseEventArgs e)
        {
            this.DoDragDrop(this, DragDropEffects.Move);
        }
    }
}
